import request from '@/utils/request';

export default {
  // 获取反馈记录列表
  getFeedbackList(searchModel) {
    return request({
      url: '/feedbacks',
      method: 'get',
      params: {
        pageNo: searchModel.pageNo,
        pageSize: searchModel.pageSize,
        eventName: searchModel.eventName,
        userName: searchModel.userName,
      },
    });
  },
   // 获取反馈统计数据
  getFeedbackStats(filters) {
    return request({
      url: '/feedbacks/stats',
      method: 'get',
      params: {
        eventId: filters.eventId,
        typeId: filters.typeId,
      },
    });
  },
  // 获取活动列表
  getEvents() {
    return request({
      url: '/events/list',
      method: 'get',
    });
  },
  //获取活动类型列表
  getEventTypes() {
    return request({
      url: '/events/eventTypes',
      method: 'get',
    });
  },
};
